import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import AppItem from './AppItem';

import aiweijz_test_logo from './images/aiwei_jz_test@2x.png';
import aiweijz_logo from './images/aiwei_jz@2x.jpg';
import aiweiyz_logo from './images/aiwei_yz@2x.jpg';
import aiweijs_logo from './images/aiwei_js@2x.png';

// 
class App extends Component {

  constructor(props) {
    super(props);

    this.appData = [{appname: 'aiwebaby', appicon: aiweijz_logo, downloadurl: 'https://fir.im/n2hz' },
    {appname: 'aiwebaby-test', appicon: aiweijz_test_logo, downloadurl: 'https://fir.im/qyxj' },
    {appname: 'aiwebaby-leader', appicon: aiweiyz_logo, downloadurl: 'http://fir.im/l1nz' },
    {appname: 'aiwebaby-teacher', appicon: aiweijs_logo, downloadurl: '	http://fir.im/vgqm' },
    ];
  }

  render() {
    return (
      <div>
        <div className='app_title'>爱维宝贝app ios版本内测下载页</div>
         <div>
        {
          this.appData.map((data, i)=> {
            return (<AppItem key={i} appname={data.appname} appicon={data.appicon}
              downloadurl={data.downloadurl} />);
          })
        }
       </div>
      </div>
     
    );
  }
}

export default App;
